package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the SERVE_ database table.
 * 
 */
@Entity
@Table(name="SERVE_")
@NamedQuery(name="Serve.findAll", query="SELECT s FROM Serve s")
public class Serve implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SERVE__SERVEID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SERVE__SERVEID_GENERATOR")
	@Column(name="SERVE_ID")
	private long serveId;

	@Column(name="SERVE_CLASSIFY")
	private String serveClassify;

	@Column(name="SERVE_CONTACTS")
	private String serveContacts;

	@Column(name="SERVE_CONTENT")
	private String serveContent;

	@Temporal(TemporalType.DATE)
	@Column(name="SERVE_DATE")
	private Date serveDate;

	@Column(name="SERVE_EXECUTOR")
	private String serveExecutor;

	@Column(name="SERVE_FAQ")
	private String serveFaq;

	@Column(name="SERVE_FEEDBACK")
	private String serveFeedback;

	@Column(name="SERVE_IFDELETE")
	private BigDecimal serveIfdelete;

	@Temporal(TemporalType.DATE)
	@Column(name="SERVE_INTODATE")
	private Date serveIntodate;

	@Column(name="SERVE_REMAKE")
	private String serveRemake;

	@Column(name="SERVE_SPENDTIME")
	private String serveSpendtime;

	@Column(name="SERVE_STATE")
	private BigDecimal serveState;

	@Temporal(TemporalType.DATE)
	@Column(name="SERVE_TIME")
	private Date serveTime;

	@Column(name="SERVE_TOPIC")
	private String serveTopic;

	@Column(name="SERVE_WAY")
	private String serveWay;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="CUSNO")
	private Customer customer;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;

	//客户id
	@Transient
	private Long cusno;
	//用户id
	@Transient
	private Long userId1;
	
	//包含/不包含/大于/小于/等于/不等于
	@Transient
	private String idRange;

	//包含/不包含/大于/小于/等于/不等于
	@Transient
	private String timeRange;
	//包含/不包含/大于/小于/等于/不等于
	@Transient
	private String topicRange;
	
	//高级查询中服务类型的集合
	@Transient
	private List<Object> serveClassifyList;

	//高级查询中花费时间的集合
	@Transient
	private List<Object> serveSpendtimeList;

	//高级查询中状态的集合
	@Transient
	private List<Object> serveStateList;

	//高级查询中处理服务方式的集合
	@Transient
	private List<Object> serveWayList;


	//高级查询中开始日期集合
	@Transient
	private List<Object> serveDateStartAndStop;
	//高级查询中开始日期
	@Transient
	private Date serveDateStart;

	//高级查询中结束日期
	@Transient
	private Date serveDateStop;	
	
	public List<Object> getServeDateStartAndStop() {
		return serveDateStartAndStop;
	}

	public void setServeDateStartAndStop(List<Object> serveDateStartAndStop) {
		this.serveDateStartAndStop = serveDateStartAndStop;
	}

	public Long getCusno() {
		return cusno;
	}

	public void setCusno(Long cusno) {
		this.cusno = cusno;
	}

	public Long getUserId1() {
		return userId1;
	}

	public void setUserId1(Long userId1) {
		this.userId1 = userId1;
	}

	public String getIdRange() {
		return idRange;
	}

	public void setIdRange(String idRange) {
		this.idRange = idRange;
	}

	public String getTimeRange() {
		return timeRange;
	}

	public void setTimeRange(String timeRange) {
		this.timeRange = timeRange;
	}

	public String getTopicRange() {
		return topicRange;
	}

	public void setTopicRange(String topicRange) {
		this.topicRange = topicRange;
	}

	public List<Object> getServeClassifyList() {
		return serveClassifyList;
	}

	public void setServeClassifyList(List<Object> serveClassifyList) {
		this.serveClassifyList = serveClassifyList;
	}

	public List<Object> getServeSpendtimeList() {
		return serveSpendtimeList;
	}

	public void setServeSpendtimeList(List<Object> serveSpendtimeList) {
		this.serveSpendtimeList = serveSpendtimeList;
	}

	public List<Object> getServeStateList() {
		return serveStateList;
	}

	public void setServeStateList(List<Object> serveStateList) {
		this.serveStateList = serveStateList;
	}

	public List<Object> getServeWayList() {
		return serveWayList;
	}

	public void setServeWayList(List<Object> serveWayList) {
		this.serveWayList = serveWayList;
	}

	public Date getServeDateStart() {
		return serveDateStart;
	}

	public void setServeDateStart(Date serveDateStart) {
		this.serveDateStart = serveDateStart;
	}

	public Date getServeDateStop() {
		return serveDateStop;
	}

	public void setServeDateStop(Date serveDateStop) {
		this.serveDateStop = serveDateStop;
	}

	public Serve() {
	}

	public long getServeId() {
		return this.serveId;
	}

	public void setServeId(long serveId) {
		this.serveId = serveId;
	}

	public String getServeClassify() {
		return this.serveClassify;
	}

	public void setServeClassify(String serveClassify) {
		this.serveClassify = serveClassify;
	}

	public String getServeContacts() {
		return this.serveContacts;
	}

	public void setServeContacts(String serveContacts) {
		this.serveContacts = serveContacts;
	}

	public String getServeContent() {
		return this.serveContent;
	}

	public void setServeContent(String serveContent) {
		this.serveContent = serveContent;
	}

	public Date getServeDate() {
		return this.serveDate;
	}

	public void setServeDate(Date serveDate) {
		this.serveDate = serveDate;
	}

	public String getServeExecutor() {
		return this.serveExecutor;
	}

	public void setServeExecutor(String serveExecutor) {
		this.serveExecutor = serveExecutor;
	}

	public String getServeFaq() {
		return this.serveFaq;
	}

	public void setServeFaq(String serveFaq) {
		this.serveFaq = serveFaq;
	}

	public String getServeFeedback() {
		return this.serveFeedback;
	}

	public void setServeFeedback(String serveFeedback) {
		this.serveFeedback = serveFeedback;
	}

	public BigDecimal getServeIfdelete() {
		return this.serveIfdelete;
	}

	public void setServeIfdelete(BigDecimal serveIfdelete) {
		this.serveIfdelete = serveIfdelete;
	}

	public Date getServeIntodate() {
		return this.serveIntodate;
	}

	public void setServeIntodate(Date serveIntodate) {
		this.serveIntodate = serveIntodate;
	}

	public String getServeRemake() {
		return this.serveRemake;
	}

	public void setServeRemake(String serveRemake) {
		this.serveRemake = serveRemake;
	}

	public String getServeSpendtime() {
		return this.serveSpendtime;
	}

	public void setServeSpendtime(String serveSpendtime) {
		this.serveSpendtime = serveSpendtime;
	}

	public BigDecimal getServeState() {
		return this.serveState;
	}

	public void setServeState(BigDecimal serveState) {
		this.serveState = serveState;
	}

	public Date getServeTime() {
		return this.serveTime;
	}

	public void setServeTime(Date serveTime) {
		this.serveTime = serveTime;
	}

	public String getServeTopic() {
		return this.serveTopic;
	}

	public void setServeTopic(String serveTopic) {
		this.serveTopic = serveTopic;
	}

	public String getServeWay() {
		return this.serveWay;
	}

	public void setServeWay(String serveWay) {
		this.serveWay = serveWay;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "Serve [serveId=" + serveId + ", serveClassify=" + serveClassify + ", serveContacts=" + serveContacts
				+ ", serveContent=" + serveContent + ", serveDate=" + serveDate + ", serveExecutor=" + serveExecutor
				+ ", serveFaq=" + serveFaq + ", serveFeedback=" + serveFeedback + ", serveIfdelete=" + serveIfdelete
				+ ", serveIntodate=" + serveIntodate + ", serveRemake=" + serveRemake + ", serveSpendtime="
				+ serveSpendtime + ", serveState=" + serveState + ", serveTime=" + serveTime + ", serveTopic="
				+ serveTopic + ", serveWay=" + serveWay + ", customer=" + customer + ", user=" + user + ", idRange="
				+ idRange + ", timeRange=" + timeRange + ", topicRange=" + topicRange + ", serveClassifyList="
				+ serveClassifyList + ", serveSpendtimeList=" + serveSpendtimeList + ", serveStateList="
				+ serveStateList + ", serveWayList=" + serveWayList + ", serveDateStart=" + serveDateStart
				+ ", serveDateStop=" + serveDateStop + "]";
	}

}